<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
    </body>
    <script type="text/javascript">

    var obj = {
        "name":"张三",
        "age" : 18 ,
        "sex" : "男" ,
        "height": 185 ,
        "gongzi": 5000
    };
    console.log(obj);

    obj.age++;
    obj.sex = "看着办，刚才泰国回来！";
    obj.aihao = "吃,喝,学习";

    delete obj.height;
    console.log(obj.age);
    console.log(obj["name"]);
    console.log(obj.sex);

    console.log(obj);

</script>
</html>